<template>
    <div>
        <div class="top">
            <div class="top-center">
                <div @click="toAdmin" class="back-btn">运营后台</div>
            </div>

        </div>
        <div class="header-a">
            <div class="header-p">
                <div class="title">建材供应链</div>
            </div>
        </div>

    </div>
</template>
<script setup lang="ts">
const toAdmin = () => {
    window.open(location.origin + location.pathname + '#/login')
}
</script>

<style scoped>
.top {
    height: 48px;
    line-height: 48px;
    background: #f5f5f5;
    text-align: right;
}

.top-center {
    width: 1200px;
    margin: 0 auto;
}

.back-btn {
    cursor: pointer;
    display: inline-block;
}
.header-a{
    background: #fff;
}
.header-p {
    
    width: 1200px;
    height: 120px;

    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title {
    font-size: 30px;
    color: var(--primary-color);
}
</style>